package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员列表对象 vip_card
 * 
 * @author slh
 * @date 2022-11-28
 */
public class VipCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 会员卡类型 */
    @Excel(name = "会员卡类型")
    private Long cardType;

    /** 会员状态 */
    @Excel(name = "会员状态")
    private Long status;

    /** 会员余额 */
    @Excel(name = "会员余额")
    private String money;

    /** 到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd HH:MM:ss")
    private Date endTime;

    /** 会员卡编号 */
    @Excel(name = "会员卡编号")
    private String cardUuid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setCardType(Long cardType) 
    {
        this.cardType = cardType;
    }

    public Long getCardType() 
    {
        return cardType;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setMoney(String money) 
    {
        this.money = money;
    }

    public String getMoney() 
    {
        return money;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCardUuid(String cardUuid) 
    {
        this.cardUuid = cardUuid;
    }

    public String getCardUuid() 
    {
        return cardUuid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("createTime", getCreateTime())
            .append("cardType", getCardType())
            .append("status", getStatus())
            .append("money", getMoney())
            .append("endTime", getEndTime())
            .append("cardUuid", getCardUuid())
            .toString();
    }
}
